//
//  ShopCarModel.m
//  shanHaiHuiApp
//
//  Created by DS on 2018/3/14.
//  Copyright © 2018年 徐双. All rights reserved.
//

#import "ShopCarModel.h"

#define PICIMAGE @"picImage"
#define NAME @"name"
#define PERMONEY @"perMoney"
#define TEXT @"textField"
#define TOTAL @"total"
#define SERIALNUM @"serialNum"

@implementation ShopCarModel

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    
    [aCoder encodeObject:self.name forKey:NAME];
    [aCoder encodeObject:self.picImage forKey:PICIMAGE];
    [aCoder encodeObject:self.perMoney forKey:PERMONEY];
    [aCoder encodeObject:self.textField forKey:TEXT];
    [aCoder encodeObject:self.totalLabel forKey:TOTAL];
    [aCoder encodeObject:self.serialNum forKey:SERIALNUM];
}
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        self.name = [aDecoder decodeObjectForKey:NAME];
        self.picImage = [aDecoder decodeObjectForKey:PICIMAGE];
        self.textField = [aDecoder decodeObjectForKey:TEXT];
        self.perMoney = [aDecoder decodeObjectForKey:PERMONEY];
        self.totalLabel = [aDecoder decodeObjectForKey:TOTAL];
        self.serialNum = [aDecoder decodeObjectForKey:SERIALNUM];
    }
    return self;
}


@end
